<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    .hh{
        height: 400px;
        width: 400px;
        background-color: cornflowerblue;
        margin: 20px 300px;
        border: 2px solid gold;
    }
    .h1{
        height: 100px;
        width: 150px;
        background-color: greenyellow;
        margin: 140px 120px 100px 120px;
    }
    .zz{
        height: 400px;
        width: 400px;
        background-color: cornflowerblue;
        margin: 20px 300px;
        border: 2px solid gold;
    }
    .zz::before{
            content: '';
            display: table;
        }
        .zz>div{
            width: 150px;
            height: 150px;
            background-color: green;
            margin: 120px 120px 100px;
        }
</style>
<body>
    <div class="hh">
        <div class="h1"></div>
    </div>
    <div class="zz">
        <div class="z1"></div>
    </div>
</body>
</html>